﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StockTrading.Model
{
    public class UserPosition
    {
        [Column("user_id")]
        public int UserId { get; set; }
        public User User { get; set; }


        [Column("stockid")]
        public int StockId { get; set; }
        public Stock Stock { get; set; }
        [Required]
        [Column("num_free")]
        public double NumFree { get; set; }

        [Required]
        [Column("num_freezed")]
        public double NumFreezed { get; set; }
    }
}
